package com.jfirer.redisserver.command;

import com.jfirer.jnet.common.api.ProcessorContext;
import com.jfirer.redisserver.RedisCore;
import com.jfirer.redisserver.resp.Resp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public interface Command
{
    Charset CHARSET = StandardCharsets.UTF_8;
    Logger  LOGGER  = LoggerFactory.getLogger(Command.class);

    CommandType type();

    void setContent(Resp[] array);

    void handle(ProcessorContext ctx, RedisCore redisCore);
}
